// @ts-ignore
/* eslint-disable */
import request from "axios";
import type { API } from "./typings";

/** 登录 POST /login/login */
export async function loginUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.loginUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<string>(`/api/login/login`, {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 退出登录 PUT /login/outLogin */
export async function outLoginUsingPut(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.outLoginUsingPUTParams,
  options?: { [key: string]: any }
) {
  return request<string>(`/api/login/outLogin`, {
    method: "PUT",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
